package com.gitee.fantaros.web.fan.netcut.util;

import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class UserSettings {

    @Value("${ollama-url}")
    private String ollamaUrl;

    public String getOllamaUrl() {
        return ollamaUrl == null ? "localhost" : ollamaUrl;
    }

    @Value("${ollama-port}")
    private String ollamaPort;

    public String getOllamaPort() {
        return ollamaPort == null ? "11434" : ollamaPort;
    }

    @Value("${spring.ai.ollama.base-url}")
    @Getter
    private String ollamaUri;

    @Value("${spirng.ai.ollama.chat.model}")
    @Getter
    private String model;

}
